package com.wz.service.impl;

import com.wz.entity.Empage;
import com.wz.mapper.EmpageMapper;
import com.wz.service.EmpageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpageServiceImpl implements EmpageService {
    @Autowired
    private EmpageMapper empageMapper;

    @Override
    public List<Empage> findEmpage() {
        return empageMapper.findEmpage();
    }

    @Override
    public int save(Empage empage) {
        return empageMapper.saveEmpage(empage);
    }

    @Override
    public Integer delete(String deptno) {
        return empageMapper.deleteEmpage(deptno);
    }
}
